package com.itbaizhan.cglib;
/*CGLib动态代理简化了JDK动态代理的写法，JDK是针对接口代理，
而CGLib是针对类代理。*/
//被代理类
public class Apple {
    public String sell(double price){
        System.out.println("产品卖"+price+"元");
        return "iphone13";
    }
  public void repair(){
      System.out.println("售后维修");
  }
}
